Files

The goal of this part is to get the files, familiarize yourself with them, and run the application and the tests.

1 Clone the repo

Use the GitHub classroom link to accept the assignment and get access to the starter code.

You can do this assignment in pairs, if you choose! Regardless of whether you work with someone else, you will need to use the group workflow. If you are working in a pair, only one person on the team should accept the assignment.

2 Check that everything works

Build the code and run the (unimplemented) tests, just to make sure that everything is working before we begin.

3 Run the main program

The main program does not do much yet, because we have not implemented the compiler’s phases. But we can run it and see what options are available to us:

stack run -- --help

This command runs the main program and passes the --help option to it. The result gives us information about how to run the compiler, what flags are available, etc.

4 Browse the files

Look through the files in the app and src directories. They should look familiar to you, from the previous assignment and from this week’s labs. Notice that the three files that comprise the parser are placeholders. You will need to fill in the implementation.